<template>
  <div class="slideshow">
    <div class="block">
      <el-carousel trigger="click" height="470px">
        <el-carousel-item v-for="item in imgarr" :key="item">
          <!-- <h3 class="small">{{ item }}</h3> -->
          <img :src="item" alt="" srcset="" />
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      imgarr: [
        "../../static/img/show3.jpg",
        "../../static/img/show1.webp",
        "../../static/img/show2.webp",
        "../../static/img/show4.webp",
        "../../static/img/show5.jpg",
      ],
    };
  },
};
</script>
<style scoped>
.slideshow {
  width: 590px;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>